
from django.contrib import admin

from django.urls import path, include

from apps.users.views import UsernameCountView, RegisterView, MobileCountView, LoginView, LogoutView, UserInfoView,SaveEmailView, EmailVerifyView,UserBrowseHistory

urlpatterns = [
    # 判断用户名是否存在
    path('usernames/<uname:username>/count/', UsernameCountView.as_view()),
    # 判断电话是否存在
    path('mobiles/<umobile:mobile>/count/', MobileCountView.as_view()),
    # 注册的视图
    path('register/',RegisterView.as_view()),
    # 登录
    path('login/',LoginView.as_view()),
    # 退出
    path('logout/',LogoutView.as_view()),
    # 用户中心获取用户数据的请求
    path('info/',UserInfoView.as_view()),
    # 添加邮箱
    path('emails/',SaveEmailView.as_view()),
    # 激活邮箱的路由
    path('emails/verification/',EmailVerifyView.as_view()),
    # 用户浏览记录
    path('browse_histories/', UserBrowseHistory.as_view()),
]

